﻿using Architecture.Domain.Dto.UserInfoDto;
using Architecture.Domain.Dto.UserInfoRoleDto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Architecture.Domain.Service.UserInfoServices
{
    public interface IUserInfoService
    {
        Task<int> AddAsync(UserInfo userInfo);
        Task<int> UpdateAsync(int id); 

        Task<int> DeletedAsync(int id);

        Task<int> UpdateUserInfoAsync(UserInfo userInfo);

        Task<UserInfo> GetModelAsync(int id);

        Task<List<UserInfo>> GetListAsync();

        Task<PageUserInfoDto<UserInfoDto>> GetUserInfoDto(int PageIndex, int PageSize, string? UserName);

        Task<List<UserInfoDtoTwo>> GetALLInfoAsyncTwo(string ids);

        Task<List<UserInfo>> GetAllAsync(string userName);

        Task<UserInfoRoleInfoDto> UserInfoLogin(string UserName, string UserPwd);
    }
}
